package com.wisdom.springiocdi;

import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 11951
 * Date: 2025-03-12
 * Time: 16:33
 */
@Component
public class BeanConfig {
    @Bean
   public User user(){
        User user=new User();
        user.setName("zhangSan");
        user.setAge(22);
        return user;
    }
}
